/*
 * @Author: 袁文帅
 * @Date: 2021-02-23 10:14:22
 * @LastEditTime: 2021-02-23 10:28:22
 * @LastEditors: last update your name
 * @人生亦有命，安能行叹复坐愁
 */
const createActions = (actions,dispatch) =>{
    let obj={}
    // 搜集dispatch请求
    for(let val in actions){
        obj[val] =function (...res) {
            dispatch(actions[val](...res))
        }
    }
    return obj
}
export default createActions